package com.atguigu.gulimall.product.feign;

import com.atguigu.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @author gcq
 * @Create 2020-12-28
 */
@FeignClient("gulimall-ware")
public interface WareFeignService {

    /**
    * @需求描述: 远程服务-仓库服务 根据skuids查询是否存在库存
    * @创建人: 郭承乾
    * @创建时间: 2020/12/28 9:37
    * @修改需求:
    * @修改人:
    * @修改时间:
    * @需求思路:
    */
    @PostMapping("/ware/waresku/hashStock")
    public R getHasStock(@RequestBody List<Long> skuIds);
}